package com.ycyun.admin.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 哦谢特谢特
 * @Date: 2018/5/18 15:33
 * @Description:
 */

public abstract class BaseEntity<ID extends Serializable> implements Serializable {
    //自定义版本序列化兼容

    private static final long serialVersionUID = 2054813493011812469L;

    private ID id;
    private Date createTime = new Date();
    private Date updateTime = new Date();

    public ID getId() {
        return id;
    }

    public void setId(ID id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
